@import "../../../style/default";

.workbench-fn {
  height: -webkit-fill-available;
  padding: 8px;
  overflow: auto;

  .apes-card-extra {
    padding: 8px 0;
  }

  .home-page-table {
    th, td {
      padding: 6px;
    }
  }

  .todo-condition-row {
    //height: 36px;
  }

  .todo-condition-col {
    padding: 8px;
    display: flex;
    margin-right: 16px;
  }

  .todo-condition-checkbox {
    padding: 0;
  }

  .todo-condition-search-input {
    //letter-spacing: 2px;
    border-radius: 4px;
    border: 1px solid rgba(221, 221, 221, 1);
    font-size: 14px;
    //height:36px;
    color: #666 !important;

    &:hover {
      border-color: #999 !important;
    }

    &:focus, &:checked {
      border-color: #333 !important;
    }
  }

  .todo-condition-toDoType-title {
    width: 30%;
    line-height: 2;
  }

  .todo-condition-toDoType-select {
    width: 70%;
  }

  .todo-th {
    text-align: center;
    padding: 6px !important;
  }

  .todo-td-business {
    cursor: pointer;
    color: #0589DD;
  }

  .todo-td-c {
    text-align: center;
    padding: 6px !important;

    &.success {
      background: rgba(5, 160, 0, 0.2) !important;
    }

    &.error {
      background: rgba(255, 0, 0, 0.2) !important;
    }

    &.warning {
      background: rgba(255, 158, 0, 0.2) !important;
    }
  }

  .todo-td-l {
    text-align: left;
    padding: 6px !important;

    .todo-td-ul {
      margin: 0;
    }
  }

  .todo-td-tip {
    border-radius: 4px;
    background: #ecf6f6;
    padding: 0 5px;

    font-size: 13px;

    line-height: 1.5;

    &.handle {
      color: #00a09d;
      border: 1px solid #00a09d;
    }

    &.supervise {
      color: #ffab00;
      border: 1px solid #ffab00;
    }
  }

  .home-table {
    height: calc(100vh - 180px - 44px - 80px); //63vh
    overflow: auto;

    &.home-table-fnWorkbench {
      height: 27vh;
    }
  }

  .fnWorkbenchMessage-btn {
    padding-right: 8px;

    .apes-radio-group {
      width: 100%;
      text-align: center;
    }

    .apes-radio-button-wrapper {
      width: 50%;
    }
  }

  .fnWorkbenchMessage-endItem {
    display: flex;
    justify-content: space-around;
    overflow: auto;

    .endItem-spin {
      width: 0;
      height: 0;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }

    .fnWorkbenchMessage-endItem-main {
      width: 100%;
    }

    .endItem-title {
      font-size: 16px;
      font-weight: bold;
      padding: 4px 0 4px 8px;
    }

    .endItem-context {
      height: 36vh;
      overflow: auto;

      .apes-collapse-header {
        padding: 12px 4px 8px 20px;
        font-size: 14px;
      }

      .apes-collapse-arrow {
        left: 5px;
      }

      .endItem-context-title {
        display: flex;
        justify-content: space-between;
      }

      .endItem-context-main {
        display: flex;
        justify-content: space-between;
        padding: 4px 4px 4px 20px;
        cursor: pointer;

        &:hover {
          background: $item-active-bg;
        }
      }

      .endItem-context-text {
        font-weight: bold;
        color: #0099ff;
      }
    }
  }

  .fnWorkbenchMessage-messageItem {
    .messageItem-spin {
      width: 0;
      height: 0;
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
      margin: auto;
    }

    .fnWorkbenchMessage-messageItem-title {
      padding: 8px 40px 8px 30px;
      border: 1px solid #d6d6d6;
      border-radius: 4px;
      margin: 16px 16px 0;
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      font-size: 17px;
      background: #d6d6d6;

      i {
        position: relative;
        top: 3px;
        color: #e6a23c;
        font-size: 20px;
      }
    }

    .fnWorkbenchMessage-messageItem-main {
      display: flex;
      justify-content: space-between;
      padding: 8px 50px 8px 30px;
      border: 1px solid #d6d6d6;
      //border-radius: 4px;
      margin: 0 16px;
      cursor: pointer;

      &:hover {
        background: $item-active-bg;
      }

      .fnWorkbenchMessage-messageItem-name {
        display: flex;
        justify-content: start;
        line-height: 2.5;
      }

      .fnWorkbenchMessage-img {
        width: 40px;
        height: 31px;

        img {
          width: 100%;
          height: 100%;
        }
      }
    }

    .fnWorkbenchMessage-messageItem-count {

      color: #0099ff;
      line-height: 2.5;
    }
  }

  .fnWorkbenchMenu {
    display: flex;
    justify-content: space-between;
    overflow: auto;
  }

  .fnWorkbenchPlanState-tooltip {
    cursor: pointer;
    position: relative;
    top: 3px;
    margin-left: 4px;
    color: #e6a23c;
  }

  .fnWorkbenchPlanState {
    display: flex;
    justify-content: start;
    overflow: auto;
  }

  .fnWorkbenchMenu-main {
    width: 100px;
    height: 95px;
    margin: 8px 25px;
    padding: 4px;
    border: 1px solid rgba(255, 0, 0, 0);
    border-radius: 4px;
    cursor: pointer;

    &:hover {
      border: 1px solid #d6d6d6
    }

    .fnWorkbenchMenu-img {
      width: 90px;
      height: 70px;
      //margin: 0 auto 10px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .fnWorkbenchMenu-title {
      font-size: 13px;
      //font-weight: bold;
      text-align: center;
    }
  }


  /deep/ .apes-table-thead > tr.apes-table-row-hover:not(.apes-table-expanded-row):not(.table-prefix-cls-row-selected) > td, .apes-table-thead > tr:hover:not(.apes-table-expanded-row):not(.table-prefix-cls-row-selected) > td, .apes-table-tbody > tr.apes-table-row-hover:not(.apes-table-expanded-row):not(.table-prefix-cls-row-selected) > td, .apes-table-tbody > tr:hover:not(.apes-table-expanded-row):not(.table-prefix-cls-row-selected) > td {
    background: rgba(0, 160, 157, 0.2);
  }


  //.assistant-time-main {
  //  height: 500px;
  //  //border: 1px solid red;
  //  width: 100%;
  //  display: flex;
  //  flex-wrap: wrap;
  //}

  .assistant-title {
    margin-left: 10px;
    font-size: 13px;

    b {
      color: #0099ff;
      cursor: pointer;
    }
  }

  .assistant-time-start {
    position: absolute;
    top: 40%;
    left: 0;
    width: 50px;
    height: 50px;
    //border: 1px solid red;
    border-radius: 10px;
    font-size: 40px;
    text-align: center;
    z-index: 10;
    background: #fff;
  }

  .assistant-time-end {
    position: absolute;
    top: 40%;
    right: 0;
    width: 50px;
    height: 50px;
    //border: 1px solid red;
    border-radius: 10px;
    font-size: 40px;
    text-align: center;
    z-index: 10;
    background: #fff;
  }

  .assistant-time-line-direction {
    flex-direction: row-reverse;
  }

  .assistant-time-line {
    width: 100%;
    padding: 20px 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    position: relative;
    margin: 0;

    &:nth-child(2n+ 0) .assistant-time-content {
      right: -5%;
    }

    &:nth-child(2n+ 1) .assistant-time-content {
      left: -2%;
    }

    &:nth-child(2n+ 0):after {
      border: none;
    }

    &:nth-child(2n+ 1):before {
      border: none;
    }

    &:first-child:before {
      border-top: 6px dashed #6b6b6b;
      border-radius: 0;
    }

    &:last-child:after {
      border: none;
      border-top: 6px dashed #6b6b6b;
      border-radius: 0;
    }


    &:before {
      content: "";
      position: absolute;
      height: 255px;
      width: 50%;
      border: 6px dashed #6b6b6b;
      border-right: none;
      border-radius: 100px 0 0 100px;
      top: 50%;
      left: 0;
      z-index: 0;
    }

    &:after {
      content: "";
      position: absolute;
      width: 50%;
      height: 255px;
      border: 6px dashed #6b6b6b;
      border-left: none;
      border-radius: 0 100px 100px 0;
      top: 50%;
      z-index: 0;
      right: 0;
      visibility: unset;
    }
  }


  .assistant-time-content {
    z-index: 10;
    padding: 30px 0;
  }

  .assistant-time-text {
    height: 150px;
    width: 240px;
    border: 1px solid black;
    border-radius: 10px;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    margin: auto;
    padding: 8px;
    color: #000;
    background: #fff;
    z-index: 10;

    .assistant-time-title {
      display: flex;
      justify-content: flex-start;
    }

    .assistant-img {
      width: 65px;
      height: 50px;
      //margin: 0 auto 10px;

      img {
        width: 100%;
        height: 100%;
      }
    }

    .assistant-title-name {
      display: flex;
      align-items: center;
      font-size: 18px;
      font-weight: bold;
    }

    .assistant-main {
      font-size: 15px;
      text-align: left;
      cursor: pointer;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      padding: 4px;
      border-radius: 4px;

      &.attr[title] {
        color: red;
      }

      &:hover {
        background: rgba(0, 153, 255, 0.3);
      }

      .assistant-main-total {
        color: #0099ff;
        font-weight: bold;
      }


    }
  }

  .assistant-title-template {
    display: flex;
    align-items: center;
  }

  .assistant-tabset {
    position: relative;
    margin-left: 10px;
    top: -2px;
    height: 25px;
  }

  .assistant-carControl {
    //padding: 10px 20px;
    height: 80vh;
    overflow: hidden;
    background: #fff;

    .assistant-carControl-left {
      padding: 10px;
      height: 80vh;
      overflow: hidden;
    }

    .assistant-carControl-right {
      padding: 10px 20px 10px 10px;
      height: 80vh;
      overflow: auto;
    }

    .assistant-carControl-total {
      border: 1px solid rgba(0, 0, 0, 0);
      //background: #fff;
      border-radius: 4px;
      padding: 8px;
      text-align: center;
      font-size: 20px;
      font-weight: bold;
      cursor: pointer;

      &:hover, &.activate {
        border: 1px solid #005a87;
        background: rgba(0, 153, 238, 0.2);
      }
    }

    .assistant-carControl-container {
      position: relative;
      height: 63vh;
      overflow: auto;

      .assistant-carControl-item {
        position: absolute;
        width: 50%;
        padding: 8px;

        &.showCarMore {
          width: 100%;
        }
      }
    }

    .assistant-carControl-main {
      border: 1px solid #607d8b;
      box-shadow: 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
      padding: 8px;
      border-radius: 4px;
    }

    .assistant-carControl-title {
      display: flex;
      justify-content: space-between;

      .carControl-title-left {
        display: flex;

        .carControl-car-logo {
          width: 50px;
          height: 50px;
          margin: 4px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .carControl-car-title {
          display: flex;
          align-items: center;
          margin-left: 8px;

          .carControl-car-license {
            font-size: 20px;
            font-weight: bold;
          }

          .carControl-customer-name {
            margin-left: 8px;
            font-size: 16px;
          }

          .carControl-btn {
            margin-left: 16px;

            .apes-btn {
              color: #005a87;

              &:hover {
                border-color: #005a87;
              }
            }
          }
        }
      }

      .carControl-title-right {
        padding-top: 8px;
      }


    }

    .assistant-carControl-content {

      .p-text {
        color: #929292;
      }

      .carControl-dept {
        display: flex;
        justify-content: space-between;
      }

      .carControl-content-icon {

      }
    }

    .assistant-carControl-footer {
      border-radius: 6px;
      margin-top: 8px;

      .carControl-footer-main {
        background: #bfbfbf;
        max-height: 500px;
        width: 100%;
        overflow: auto;
        padding: 8px;
        border-radius: 6px;

        &.showCar {
          border-bottom-left-radius: 0;
          border-bottom-right-radius: 0;
        }

        .footer-main {
          display: flex;
          justify-content: flex-start;

          .carControl-card-logo {
            width: 65px;
            height: 50px;
            margin: 4px;

            img {
              width: 100%;
              height: 100%;
            }
          }

          .carControl-card-main {
            width: calc(100% - 75px);
            display: flex;
            justify-content: space-evenly;
            flex-flow: column;
          }

        }

        .card-main-top {
          display: flex;
          justify-content: space-between;

          .card-main {
            max-width: 85%;
            display: flex;
            align-items: center;

            .card-main-state {
              margin-left: 8px;
              white-space: nowrap;
              overflow: auto;
            }
          }

          .card-amount {

          }

          .card-main-tab {
            color: #000b16;
          }
        }

        .card-main-bottom {
          color: #7d7b7b;
        }
      }


      .carControl-showMore {
        border: 1px solid #005a87;
        border-radius: 4px;

        &.showCar {
          border-top-left-radius: 0;
          border-top-right-radius: 0;
        }

        .carControl-showMore-btn {
          padding: 6px;
          color: #005a87;
          cursor: pointer;
          text-align: center;
          width: 100%;
          margin: auto;
        }
      }

      .carControl-msg {
        border-radius: 4px;
        background: #bfbfbf;
        display: flex;
        height: 70px;
        justify-content: center;
        text-align: center;
        align-items: center;

        .carControl-msg-img {
          width: 65px;
          height: 50px;
          margin: 4px;

          img {
            width: 100%;
            height: 100%;
          }
        }

        .carControl-msg-text {
          span {
            color: #005a87;
            cursor: pointer;
          }
        }
      }
    }
  }

  /deep/ .apes-card-head {
    min-height: 32px;
  }

  /deep/ .apes-card-head-title {
    font-size: 16px;
    padding: 6px 0 6px 8px;

    span {
      font-size: 12px;
      color: #aaaaaa;
      margin-left: 8px;

      b {
        color: #0099ff;
        cursor: pointer;
      }
    }
  }

  /deep/ .apes-card-extra {
    padding: 0;
  }

  .workbench-storeData {
    display: flex;
    justify-content: space-around;
    text-align: center;
    padding: 16px;
    height: 128px;
    line-height: 2;

    .workbench-storeData-main {
      font-size: 22px;
    }

    .workbench-storeData-num {
      font-weight: bold;
      margin-bottom: 8px;
      position: relative;
    }

    .workbench-storeData-tooltip {
      cursor: pointer;
      position: absolute;
      top: 15px;
      margin-left: 4px;
      color: #e6a23c;
      font-size: 15px;
    }

    .workbench-storeData-text {
      color: #aaaaaa;
    }
  }

  .personalData-header-extra {
    position: relative;
    width: 20px;
    height: 20px;
    background-color: #ccc;
    text-align: center;
    line-height: 20px;

    &:before {
      content: "";
      position: absolute;
      left: -20px;
      top: 0;
      width: 0;
      height: 0;
      border-top: 0 solid transparent;
      border-bottom: 38px solid transparent;
      border-right: 40px solid #ccc;
    }
  }

  .personalData-header-extra-text {
    position: absolute;
    top: 3px;
    left: 3px;
  }

  .workbench-personalData {
    height: 120px;

    .personalData-header {
      text-align: center;
    }

    .personalData-header-img {
      width: 30px;
      height: 30px;
      line-height: 30px;
      //border: 1px solid #ccc;
      //border-radius: 50%;
      margin: 8px auto 4px;
      img {
        width: 100%;
        height: 100%;
      }
    }

    .personalData-header-name {
      font-weight: bold;
    }

    .personalData-header-deptName {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      font-size: 14px;
      color: #aaaaaa;
    }

    .personalData-info {
      display: flex;
      justify-content: space-around;
      text-align: center;


      .personalData-info-main {
        padding: 0 4px;
        border-radius: 4px;
        cursor: pointer;

        &:hover {
          background: rgba(0, 153, 255, .3);
        }
      }

    }

    .personalData-info-num {
      font-weight: bold;
    }

    .personalData-info-text {
      color: #aaaaaa;
    }
  }

  .workbench-intelligentData {
    padding: 32px 32px 32px 16px;
    min-height: 500px;

    /deep/ .apes-timeline-item-head {
      width: 20px;
      height: 20px;
      left: -5px;
      top: -5px;
    }

    /deep/ .apes-timeline-item-tail {
      border-left: 2px dashed #9d9d9d;
    }

    /deep/ .apes-timeline-item-last {
      .apes-timeline-item-tail {
        display: block;
      }
    }

    .workbench-intelligentData-title {
      font-size: 16px;
      font-weight: bold;
      position: relative;
      top: -3px;
    }

    .workbench-intelligentData-main {

      .intelligentData-main {
        display: flex;
        justify-content: space-between;
      }

      .intelligentData-box {
        //border: 1px solid #000;
        border-radius: 10px;
        box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
        padding: 8px;
        //width: 100%;
        margin: 8px;
      }

      .intelligentData-box-title {
        font-size: 14px;
        font-weight: bold;
      }


      .box-detail-main {
        font-size: 14px;
        text-align: left;
        cursor: pointer;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 4px;
        border-radius: 4px;

        &:hover {
          background: rgba(0, 153, 255, .3);
        }
      }

      .box-detail-main-total {
        font-weight: bold;
        font-size: 16px;

        &.check {
          color: #e6a23c;
        }
      }
    }
  }

  .workbench-backlogData {
    min-height: 300px;
    max-height: 80vh;
    overflow: auto;

    .workbench-backlogData-main {
      border-radius: 10px;
      box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
      padding: 8px;
      margin: 16px;
      position: relative;
      cursor: pointer;
      font-size: 14px;
      line-height: 1.7;

      &:hover {
        background: rgba(111, 197, 255, 0.2);
      }
    }

    .backlogData-title {
      display: flex;
      justify-content: start;

      .backlogData-title-text {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-weight: bold;
      }

      .backlogData-title-tip {
        border-radius: 4px;
        background: #ecf6f6;
        padding: 0 5px;
        margin-left: 4px;
        font-size: 13px;
        line-height: 1.5;

        &.handle {
          color: #00a09d;
          border: 1px solid #00a09d;
        }

        &.supervise {
          color: #ffab00;
          border: 1px solid #ffab00;
        }
      }


    }

    .backlogData-todoNode {
      border-radius: 4px;
      background: #e6ffff;
      padding: 0 5px;
      font-size: 13px;
      line-height: 1.5;
      color: #2baaaa;
      border: 1px solid #2baaaa;
      position: absolute;
      top: 5px;
      right: 3px;
    }

    .backlogData-businessKey {
      //span {
      //color: #4b96f7;
      //}
      font-weight: bold;
    }

    .backlogData-remark {
      color: #9d9d9d;
    }
  }

  .workbench-backlogData-search {
    margin: 8px 16px;
  }

  .workbench-backlogData-extra {
    margin: 3px 5px;

    .backlogData-extra-main {
      border: 1px solid #4b96f7;
      border-radius: 4px;
      color: #4b96f7;
      padding: 4px;
      cursor: pointer;
    }
  }
}

.backlogData-extra-popover {
  width: 250px;
  height: 300px;
  overflow: hidden;
  padding-right: 15px;

  .extra-popover-check-main {
    display: flex;
    justify-content: space-evenly;
  }

  .extra-popover-check {
    cursor: pointer;
    color: #4b96f7;
    padding: 4px;
    border: 1px solid rgba(75, 150, 247, 0);
    border-radius: 4px;

    &:hover {
      border: 1px solid #4b96f7;
    }
  }

  .extra-popover-list-main {
    height: calc(100% - 65px);
    margin: 8px 0;
    overflow: auto;
  }

  .extra-popover-list {
    padding: 4px;
    line-height: 1;
  }

  .extra-popover-search {

    .todo-condition-search-input {
      border-radius: 4px;
      border: 1px solid rgba(221, 221, 221, 1);
      font-size: 14px;
      color: #666 !important;

      &:hover {
        border-color: #999 !important;
      }

      &:focus, &:checked {
        border-color: #333 !important;
      }
    }
  }
}


.assistant-tooltip {
  .apes-tooltip-inner {
    width: 430px;
  }

  p {
    font-size: 16px;
    font-weight: bold;
  }

  span {
    font-size: 14px;
    font-weight: bold;
  }
}


@media (max-width: $screen-xl-max) {
  .workbench-fn {
    .todo-condition-col {
      padding: 4px;
    }

    .home-table {
      &.home-table-fnWorkbench {
        height: 24vh;
      }
    }

    .fnWorkbenchMenu-main {
      width: 102px;
      height: 90px;
      margin: 4px 15px;

      .fnWorkbenchMenu-img {
        width: 70px;
        height: 58px;
        margin: 0 auto 5px;
      }

      .fnWorkbenchMenu-title {
        font-size: 8px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }

    .fnWorkbenchMessage-endItem {
      .endItem-context {
        height: 35vh;
      }
    }

    .assistant-time-content {
      padding: 6px 0;
    }

    .assistant-time-line {
      &:before {
        height: 210px;
      }

      &:after {
        height: 210px;
      }

      &:nth-child(2n+ 0) .assistant-time-content {
        right: -2%;
      }

      &:nth-child(2n+ 1) .assistant-time-content {
        left: -1%;
      }
    }

    .assistant-time-text {
      transform: scale(0.7);
    }

    .assistant-carControl {
      height: 75vh;

      .assistant-carControl-left, .assistant-carControl-right {
        height: 75vh;
      }

      .assistant-carControl-container {
        height: 54vh;
      }
    }

    .workbench-backlogData {
      .backlogData-todoNode {
        position: relative;
        top: 0;
        right: 0;
        display: inline;
      }
    }

    //.backlogData-title-text {
    //  max-width: 90px;
    //}
  }
}
